import apiUrl from '../base'
import axios from '@/libs/axios'
const processControl = {
  //列表
  queryPage(model) {
    return axios.post(`${apiUrl.risk}v1/DynamicProcessControl/list`, model)
  },
  // 统计
  statistics(model) {
    return axios.post(
      `${apiUrl.risk}v1/DynamicProcessControl/controlStatistics`,
      model
    )
  },
  controlDetail(id) {
    return axios.get(
      `${apiUrl.risk}v1/DynamicProcessControl/detail/controlInfo/${id}`
    )
  },
  measureDetail(id) {
    return axios.get(
      `${apiUrl.risk}v1/DynamicProcessControl/detail/measuresInfo/${id}`
    )
  },
  riskDetail(id) {
    return axios.get(
      `${apiUrl.risk}v1/DynamicProcessControl/detail/riskInfo/${id}`
    )
  },
  control(model) {
    return axios.post(`${apiUrl.risk}v1/DynamicProcessControl/edit`, model)
  },
  userTypes() {
    return axios.get(`${apiUrl.risk}v1/DynamicProcessControl/getUserType`)
  }
}
export default processControl
